package com.demo.dubborpc.provider;

import com.demo.dubborpc.publicinterface.HelloService;
import io.netty.util.internal.StringUtil;

/**
 * @author gy
 * @date 2022/8/7
 */
public class HelloServiceImpl implements HelloService {

    private static int count = 0;

    @Override
    public String hello(String mes) {

        if (!StringUtil.isNullOrEmpty(mes)){
            return "服务端接成功收到客户端消息,内容为:" + mes + "第" + (++count) + "次";
        }else {
            return "服务端接成功收到客户端消息,内容为: 空";
        }

    }
}
